home *** CD-ROM | disk | FTP | other *** search
- /* RepReq.xdme */
-
- if ~show("L","rexxreqtools.library") then
- if ~addlib("rexxreqtools.library", 0, -30) then exit
-
- if ~show("L","rexxarplib.library") then
- if ~addlib("rexxarplib.library",0,-30,0) then exit
-
- F = '(' || GetEnv('F') || ')'
- R = rtgetstring(GetEnv('R'),"Enter Replace String","XDMD Replace Requester","_Here|_All|_Block|_Cancel")
- if rtresult = 0 then exit
- R = '(' || R || ')'
- xcom = 'setenv R' R 'repstr' R 'setenv F' F 'findstr' F
- xcom
- if rtresult = 1 then do
- 'scanf w setenv F $scanf findstr $F replace'
- end
- else if rtresult = 2 then do
- 'bottom last repeat -1 (prev push pos replace pop pos)'
- end
- else do
- 'goto end right ifelse cb last left while cb (prev if cb (push pos replace pop pos) goto block'
- end
-